package com.biz.primus.app.tms;

import com.biz.primus.app.tms.config.Swagger2Configuration;
import com.biz.primus.ms.base.feign.PrimusSoaFeignErrorDecoder;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

/**
 * TmsApplication
 *
 * @author JKLiues
 * @date 2017年11月27日
 */
@SpringCloudApplication
@Import(Swagger2Configuration.class)
@EnableFeignClients
public class TmsApplication {
    public static void main(String[] args) {
        new SpringApplication(TmsApplication.class).run(args);
    }

    @Bean
    public PrimusSoaFeignErrorDecoder getErrorDecoder() {
        return new PrimusSoaFeignErrorDecoder();
    }
}